function doSimpleLatexTable(data,nameLatexFile,numDecimals)
input.data = data; 

% we want a complete LaTex document
input.makeCompleteLatexDocument = 1;
input.dataFormat = {['%.',num2str(numDecimals),'f']};
% generate LaTex code
latex = latexTable(input);

% save LaTex code as file
fid=fopen([nameLatexFile,'.tex'],'w');
[nrows,ncols] = size(latex);
for row = 1:nrows
    fprintf(fid,'%s\n',latex{row,:});
end
fclose(fid);


end

